<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Jialeo\LaravelSchemaExtend\Schema;

class AddPushExtraToSystemNotifyCenterTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('system_notify_center', function (Blueprint $table) {
            // https://onepiece-group.feishu.cn/wiki/wikcn5I4jIGyO8NOImw5wvFRLxb
            $table->string('pushExtra', 1024)->default('{}')->comment('推送额外参数');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('system_notify_center', function (Blueprint $table) {
            $table->dropColumn('pushExtra');
        });
    }
}
